package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;

public class EquipmentEntity {
    private int equipment_id;
    private String equipment_name;
    private String equipment_type;
    private String equipment_manufacturer;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date equipment_standbyTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date equipment_warrantyPeriod;
    private String equipment_afterSalesPerson;
    private String equipment_phoneNumber;
    private String equipment_warrantyStatement;

    public EquipmentEntity() {
    }

    public EquipmentEntity(int equipment_id, String equipment_name, String equipment_type, String equipment_manufacturer, Date equipment_standbyTime, Date equipment_warrantyPeriod, String equipment_afterSalesPerson, String equipment_phoneNumber, String equipment_warrantyStatement) {
        this.equipment_id = equipment_id;
        this.equipment_name = equipment_name;
        this.equipment_type = equipment_type;
        this.equipment_manufacturer = equipment_manufacturer;
        this.equipment_standbyTime = equipment_standbyTime;
        this.equipment_warrantyPeriod = equipment_warrantyPeriod;
        this.equipment_afterSalesPerson = equipment_afterSalesPerson;
        this.equipment_phoneNumber = equipment_phoneNumber;
        this.equipment_warrantyStatement = equipment_warrantyStatement;
    }

    public int getEquipment_id() {
        return equipment_id;
    }

    public void setEquipment_id(int equipment_id) {
        this.equipment_id = equipment_id;
    }

    public String getEquipment_name() {
        return equipment_name;
    }

    public void setEquipment_name(String equipment_name) {
        this.equipment_name = equipment_name;
    }

    public String getEquipment_type() {
        return equipment_type;
    }

    public void setEquipment_type(String equipment_type) {
        this.equipment_type = equipment_type;
    }

    public String getEquipment_manufacturer() {
        return equipment_manufacturer;
    }

    public void setEquipment_manufacturer(String equipment_manufacturer) {
        this.equipment_manufacturer = equipment_manufacturer;
    }

    public Date getEquipment_standbyTime() {
        return equipment_standbyTime;
    }

    public void setEquipment_standbyTime(Date equipment_standbyTime) {
        this.equipment_standbyTime = equipment_standbyTime;
    }

    public Date getEquipment_warrantyPeriod() {
        return equipment_warrantyPeriod;
    }

    public void setEquipment_warrantyPeriod(Date equipment_warrantyPeriod) {
        this.equipment_warrantyPeriod = equipment_warrantyPeriod;
    }

    public String getEquipment_afterSalesPerson() {
        return equipment_afterSalesPerson;
    }

    public void setEquipment_afterSalesPerson(String equipment_afterSalesPerson) {
        this.equipment_afterSalesPerson = equipment_afterSalesPerson;
    }

    public String getEquipment_phoneNumber() {
        return equipment_phoneNumber;
    }

    public void setEquipment_phoneNumber(String equipment_phoneNumber) {
        this.equipment_phoneNumber = equipment_phoneNumber;
    }

    public String getEquipment_warrantyStatement() {
        return equipment_warrantyStatement;
    }

    public void setEquipment_warrantyStatement(String equipment_warrantyStatement) {
        this.equipment_warrantyStatement = equipment_warrantyStatement;
    }

    @Override
    public String toString() {
        return "EquipmentEntity{" +
                "equipment_id=" + equipment_id +
                ", equipment_name='" + equipment_name + '\'' +
                ", equipment_type='" + equipment_type + '\'' +
                ", equipment_manufacturer='" + equipment_manufacturer + '\'' +
                ", equipment_standbyTime=" + equipment_standbyTime +
                ", equipment_warrantyPeriod=" + equipment_warrantyPeriod +
                ", equipment_afterSalesPerson='" + equipment_afterSalesPerson + '\'' +
                ", equipment_phoneNumber='" + equipment_phoneNumber + '\'' +
                ", equipment_warrantyStatement='" + equipment_warrantyStatement + '\'' +
                '}';
    }
}
